package com.platform.common.util.query.vo;

import java.util.List;

import com.platform.common.util.query.constant.Operator;

/**
 * 分组查询条件
 * 
 * @date Sep 19, 2017:8:01:59 PM
 * @desc com.netbox.json
 */
public class Group {
	//列值关系
	private List<Fields> fields;
	// 关系符
	private Operator opt;
	//子查询条件
	private Group group;

	public Group(List<Fields> fields, Operator opt) {
		this.fields = fields;
		this.opt = opt;
	}

	public Group(List<Fields> fields,Operator opt, Group group) {
		this.fields = fields;
		this.opt = opt;
		this.group = group;
	}

	public Group(List<Fields> fields) {
		this.fields = fields;
	}

	public Group() {
	}

	public List<Fields> getFields() {
		return fields;
	}

	public void setFields(List<Fields> fields) {
		this.fields = fields;
	}

	public Operator getOpt() {
		return opt;
	}

	public void setOpt(Operator opt) {
		this.opt = opt;
	}

	public Group getGroup() {
		return group;
	}

	public void setGroup(Group group) {
		this.group = group;
	}

	@Override
	public String toString() {
		return "Group [fields=" + fields + ", opt=" + opt + ", group=" + group + "]";
	}

}
